﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace com.iot.ht.Controllers.htrole.data
{
    [Schema(Name = "角色Dto", Description ="")]
    public class HtRoleDto : BaseDto
    {



        [Comment("平台编号")]
        [Schema(Name = "平台编号", Description = "")]
        public long HtplatId { get; set; }


        [Comment("角色名称")]
        [Schema(Name = "角色名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("创建人编号")]
        [Schema(Name = "创建人编号", Description = "")]
        public long CrtUid { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long CrtDid { get; set; }


        [Comment("平台名称")]
        [Schema(Name = "平台名称", Description = "")]
        public string HtplatName { get; set; } = "";


        [Comment("创建人")]
        [Schema(Name = "创建人", Description = "")]
        public string CrtUname { get; set; } = "";


        [Comment("创建机构")]
        [Schema(Name = "创建机构", Description = "")]
        public string CrtDname { get; set; } = "";


        [Comment("权限菜单")]
        [Schema(Name = "权限菜单", Description = "")]
        public List<long> HtmenuIds { get; set; } = new List<long>();
    }
}
